import * as actionTypes from '../actionTypes'

export const saveToken = (data) => ({ type: actionTypes.SAVE_TOKEN, data })
export const delToken = () => ({ type: actionTypes.DEL_TOKEN })

export const saveUserInfo = (data) => ({ type: actionTypes.SAVE_USER_INFO, data })

export const saveRoutes = (data) => ({ type: actionTypes.SAVE_ROUTES, data })
export const delRoutes = () => ({ type: actionTypes.DEL_ROUTES })
